package gamegui;


import java.awt.Dimension;
import java.awt.Point;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class ViewUnlockMaps extends JPanel {

	/**
	 * Create the panel.
	 */
	JButton map1,map2,map3;
	JButton backToMainButton;
	static Dimension dim = new Dimension (1100, 730);
	public ViewUnlockMaps() {
		// Variables
        final Dimension buttonSize = new Dimension(160, 160);
        final Point sel1Loc = new Point(281, 390);
        final Point sel2Loc = new Point(467, (int) sel1Loc.getY());
        final Point sel3Loc = new Point(660, (int) sel1Loc.getY());
        
        // Panel initialization
        JPanel startGamePanel = new JPanel();
        startGamePanel.setLocation(0, 0);  
        
        //Label
        JLabel label = new JLabel();
        ImageIcon startImage = new ImageIcon("play-game-step1.jpg");    
        label = new JLabel("", startImage, JLabel.CENTER);
        label.setLocation(0, 0);
        label.setPreferredSize(dim);
        
        ///Buttons
        map1 = new JButton("");
        map1.setSize(buttonSize);
        map1.setLocation(sel1Loc);
  //      sel1.setActionCommand("sel1");
        label.add(map1);
        
        map2 = new JButton("");
        map2.setSize(buttonSize);
        map2.setLocation(sel2Loc);
    //    sel2.setActionCommand("sel2");
        label.add(map2);
        
        map3 = new JButton("");
        map3.setSize(buttonSize);
        map3.setLocation(sel3Loc);
    //    sel3.setActionCommand("sel3");
        label.add(map3);
        
        backToMainButton = new JButton("Back");
        backToMainButton.setSize(new Dimension(80,40));
        backToMainButton.setLocation(850,470);
      //  backToMainButton.setActionCommand("back");
        label.add(backToMainButton);
        
        startGamePanel.add(label);
        add(startGamePanel);
        
        repaint();
	}
	public JButton getBackToMainButton(){
		return backToMainButton;
	}
	public JButton getMap1Button(){
		return map1;
	}
	public JButton getMap2Button(){
		return map2;
	}
	public JButton getMap3Button(){
		return map3;
	}

}
